home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / linux / filesys / fs.txt < prev    next >
Text File  |  1995-04-22  |  4KB  |  104 lines

  1. This file contains instructions on how to install "root.tar.gz" and
  2. "usr.tar.gz" on Minix filesystems on hard disk partitions under
  3. Linux/68k using an Amiga.
  4.  
  5. These two gzipped tar files contain executables and data files which
  6. together comprise a "usable" Linux filesystem space.
  7.  
  8. They include gcc-2.5.8, libc-4.5.21, ld.so-1.4.3, util-linux-1.1, the
  9. GNU shellutils, GNU fileutils, and GNU textutils.  It also includes
  10. the programs from procps-0.08, but they (and the /proc filesystem)
  11. won't work in Linux 0.07pl3.
  12.  
  13. You need:
  14.  
  15. 1) A hard disk partition at least 2.5M in size on a disk accessible
  16.    from Linux/68k for the "root.tar.gz" files.
  17. 2) A hard disk partition at least 7.0M in size on a disk accessible
  18.    from Linux/68k for the "usr.tar.gz" files.
  19. 3) A "tar" program executable for Linux (tar.gz can be found in
  20.    tsx-11.mit.edu:/pub/linux/680x0/tools).  This file should be
  21.    gunzipped and placed on a partition accessible from Linux/68k.
  22.    Ensure that the "tar" file is executable (protect tar +e).
  23. 4) The "filesys" ramdisk root image for Linux/68k.
  24.  
  25. Before installing, gunzip the two files and place them on an AmigaDOS
  26. partition accessible from Linux/68k.
  27.  
  28. You should probably also extract "etc/fstab" in AmigaDOS and edit it:
  29.  
  30.   tar xf root.tar etc/fstab
  31.  
  32. When you edit the etc/fstab file, you should change the partitions
  33. mentioned there for / and /usr to the partitions you are installing
  34. the root and usr filesystems on.   Remember that /dev/sda is the first
  35. SCSI disk found on your system (lower SCSI target number) and that the
  36. partitions are numbered as they appear from left to right in
  37. HDToolBox.  Thus /dev/sda1 is the first partition on your lowest
  38. numbered disk.
  39.  
  40. Determine the size, in 1K blocks of the partitions you are installing
  41. on.  This can be determined using HDToolBox.  Remember that two 512
  42. byte SCSI sectors make 1 1K block.  Note this for later, when you
  43. create the filesystems.
  44.  
  45. When you are ready to install:
  46.  
  47. Boot linux/68k using the "filesys" ramdisk image.
  48.  
  49. If you have not already created a Minix filesystem on your intended
  50. partition, do so using "mkfs" (note that mkfs requires the size of the
  51. partition in 1K blocks).  Create a /mnt2 directory.  Mount your new
  52. Minix root partition on /mnt, and mount your AmigaDOS partition with
  53. "root.tar", "usr.tar" and "tar" on /mnt2.
  54.  
  55. create the root partition
  56. # /etc/mkfs /dev/sd?? <size>
  57. create the usr partition
  58. # /etc/mkfs /dev/sd?? <size>
  59. mount the root partition
  60. # /etc/mount /dev/sd?? /mnt
  61. mount the AmigaDOS partition
  62. # /etc/mount -t affs /dev/sd?? /mnt2
  63. change directory to the (hard disk) root directory and untar
  64. # cd /mnt
  65. # /mnt2/path/to/tar xvf /mnt2/path/to/root.tar
  66. [...]
  67. make sure everything is saved to disk
  68. # sync
  69. mount the /usr partition
  70. # mount /dev/sd?? /mnt/usr
  71. change directory to the /mnt/usr directory and untar
  72. # cd /mnt/usr
  73. # /mnt2/path/to/tar xvf /mnt2/path/to/usr.tar
  74. [...]
  75. make sure everything is saved to disk
  76. # sync
  77. unmount all filesystems
  78. # /etc/umount -a
  79. # /etc/umount /mnt
  80.  
  81. After this, you can reboot, and boot from the new root partition:
  82.  
  83. amigados> bootstrap root=/dev/sd?? ro
  84.                                    ^^  boot with the root read-only
  85.  
  86. Assuming everything works correctly you should be able to login as
  87. root (no password required).  If certain things fail, you may get a
  88. single-user shell instead of a login prompt.  At this point the file
  89. system will be read-only, so to change the files you'll probably have
  90. to reboot and boot up with the file-system read-write (boot without
  91. the "ro" parameter).
  92.  
  93. At this point, you can make any further changes you feel are
  94. necessary.  The only editor available is "ed", so if you don't know
  95. how to use this editor, find out before booting!  A man page for "ed"
  96. is available in:
  97.  
  98. tsx-11.mit.edu:/pub/linux/packages/utils/util-linux-1.1.src.tar.gz.
  99.  
  100. To reboot, you can use the "/sbin/shutdown" command to shutdown Linux
  101. gracefully.  You can give it the "now" option to shutdown right away,
  102. without a delay.  Once it gives you the message that you can safely
  103. shutdown the machine, you can use C-A-A to reboot back to AmigaDOS.
  104.